import { Component } from "react";
import PropTypes from "prop-types";

export default class Votefooter extends Component{
    static propTypes={
        add:PropTypes.func
    }
    render(){
        let {add}=this.props
        return <div>
                <button onClick={add.bind(null,"sup")}>支持</button>
                <button onClick={add.bind(null,"opp")}>反对</button>
            </div>
    }
}